<div *ngIf="data.result">
  <h1 mat-dialog-title class="succ">请求成功！</h1>
  <div mat-dialog-content >
    <p>{{data.result}}</p>
  </div>
  <div mat-dialog-actions>
    <button mat-raised-button (click)="goBack()" color="primary" tabindex="2">返回上一页</button>
    <button mat-button (click)="onNoClick()"  tabindex="-1">留在本页</button>
  </div>
</div>

<div *ngIf="data.error">
  <h1 mat-dialog-title class="err">请求失败！</h1>
  <div mat-dialog-content>
    <p>{{data.error}}</p>
  </div>
  <div mat-dialog-actions>
    <button mat-raised-button (click)="onNoClick()" color="warn" tabindex="2">确定</button>
  </div>
</div>
